/*
 * 版权所有 (C) 2015 知启蒙(ZHIQIM) 保留所有权利。[遇见知启蒙，邂逅框架梦]
 * 
 * 知启蒙数据库映射（zhiqim_orm）在LGPL3.0协议下开源：https://www.zhiqim.com/gitcan/zhiqim/zhiqim_orm.htm
 *
 * This file is part of [zhiqim_orm].
 * 
 * [zhiqim_orm] is free software: you can redistribute
 * it and/or modify it under the terms of the GNU Lesser General Public License
 * as published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 * 
 * [zhiqim_orm] is distributed in the hope that it will
 * be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with [zhiqim_orm].
 * If not, see <http://www.gnu.org/licenses/>.
 */
package org.zhiqim.orm.test.qc.dbo;

import java.io.Serializable;

import org.zhiqim.kernel.annotation.AnAlias;
import org.zhiqim.kernel.annotation.AnNew;
import org.zhiqim.kernel.json.Jsons;
import org.zhiqim.orm.annotation.*;

/**
 * 回复表 对应表《QC_ANSWER》
 */
@AnAlias("QcAnswer")
@AnNew
@AnTable(table="QC_ANSWER", key="COMMENT_ID,ANSWER_ID", type="InnoDB")
public class QcAnswer implements Serializable
{
    private static final long serialVersionUID = 1L;

    @AnTableField(column="QUESTION_ID", type="long", notNull=true)    private long questionId;    //1.问题编号
    @AnTableField(column="COMMENT_ID", type="long", notNull=true)    private long commentId;    //2.评论编号
    @AnTableField(column="ANSWER_ID", type="long", notNull=true)    private long answerId;    //3.回复编号
    @AnTableField(column="COMMENT_USER_ID", type="long", notNull=true)    private long commentUserId;    //4.评论作者编号
    @AnTableField(column="ANSWER_CONTENT", type="string,2000", notNull=true)    private String answerContent;    //5.回复内容
    @AnTableField(column="ANSWER_USER_ID", type="long", notNull=true)    private long answerUserId;    //6.回复作者编号
    @AnTableField(column="ANSWER_TIME", type="string,19,char", notNull=true)    private String answerTime;    //7.回复时间

    public String toString()
    {
        return Jsons.toString(this);
    }

    public long getQuestionId()
    {
        return questionId;
    }

    public void setQuestionId(long questionId)
    {
        this.questionId = questionId;
    }

    public long getCommentId()
    {
        return commentId;
    }

    public void setCommentId(long commentId)
    {
        this.commentId = commentId;
    }

    public long getAnswerId()
    {
        return answerId;
    }

    public void setAnswerId(long answerId)
    {
        this.answerId = answerId;
    }

    public long getCommentUserId()
    {
        return commentUserId;
    }

    public void setCommentUserId(long commentUserId)
    {
        this.commentUserId = commentUserId;
    }

    public String getAnswerContent()
    {
        return answerContent;
    }

    public void setAnswerContent(String answerContent)
    {
        this.answerContent = answerContent;
    }

    public long getAnswerUserId()
    {
        return answerUserId;
    }

    public void setAnswerUserId(long answerUserId)
    {
        this.answerUserId = answerUserId;
    }

    public String getAnswerTime()
    {
        return answerTime;
    }

    public void setAnswerTime(String answerTime)
    {
        this.answerTime = answerTime;
    }

}
